package cn.hdu.liang.ch2;


public class ThreadTest {
    public static void main(String[] args) {

        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("旧的方式");
            }
        });
        t.start();


        Thread newT = new Thread(() -> System.out.println("新的方式"));
        newT.start();
    }
}
